﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucConsultaLog.ascx.cs"
    Inherits="wRegPadron.frmOpciones.ucConsultaLog" %>
<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<table width="100%">
    <tr>
        <td valign="top" align="left">
            <fieldset>
                <legend>
                    <h3>
                        <asp:Label runat="server" ID="lblTitulo"></asp:Label>
                        <p>
                            <small>
                                <asp:Label runat="server" ID="lblDescripcion"></asp:Label></small></p>
                    </h3>
                </legend>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td align="center">
            <table width="95%">
                <tr>
                    <td width="100%" align="left">
                        <div class="tabbable">
                            <ul class="nav nav-tabs">
                                <li class="active"><a href="#tab1" data-toggle="tab">Log web services</a></li>
                                <li><a href="#tab2" data-toggle="tab">Gráficos</a></li>
                            </ul>
                            <div class="tab-content">
                                <div class="tab-pane active" id="tab1" style="padding-left: 10px">
                                    <table width="100%">
                                        <tr>
                                            <td align="center">
                                                <asp:Button runat="server" ID="btnActualizar" CssClass="btn" Text="Actualizar" OnClick="btnActualizar_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100%" align="center">
                                                <asp:GridView runat="server" ID="gvLog" AutoGenerateColumns="False" AllowPaging="True"
                                                    OnPageIndexChanging="gvLog_PageIndexChanging" PageSize="30" EnableModelValidation="True">
                                                    <SelectedRowStyle CssClass="bselectedrow" />
                                                    <PagerStyle CssClass="bpagerstyle" HorizontalAlign="Left" />
                                                    <HeaderStyle Font-Size="Small" Font-Underline="true" Font-Bold="true" CssClass="bgrid" />
                                                    <PagerSettings Mode="Numeric" Position="TopAndBottom" />
                                                    <Columns>
                                                        <asp:BoundField HeaderText="IP" DataField="LOGWS_chIPCLIEN" />
                                                        <asp:BoundField HeaderText="Web Service" DataField="LOGSWS_chNOMSER" />
                                                        <asp:BoundField HeaderText="Método" DataField="LOGSWS_chNOMMET" />
                                                        <asp:BoundField HeaderText="Fecha" DataField="LOGWS_chFECREG" />
                                                        <asp:BoundField HeaderText="Hora" DataField="LOGSWS_CHHORREG" />
                                                        <asp:BoundField HeaderText="Resultado" DataField="LOGSWS_chRESINT" />
                                                    </Columns>
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="tab-pane" id="tab2" style="padding-left: 10px">
                                    <asp:UpdatePanel runat="server" ID="PanelLog">
                                        <ContentTemplate>
                                            <table width="100%">
                                                <tr>
                                                    <td align="center" width="100%">
                                                        <table width="60%">
                                                            <tr>
                                                                <td align="left" class="muted" colspan="2">
                                                                    Web services
                                                                </td>
                                                                <td align="left" colspan="3">
                                                                    <asp:DropDownList runat="server" ID="ddlWebService">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="left" class="muted">
                                                                    Año:
                                                                </td>
                                                                <td align="left">
                                                                    <asp:DropDownList runat="server" ID="ddlAnio" CssClass="tdCampoValorInput" OnSelectedIndexChanged="ddlAnio_SelectedIndexChanged" Width="80px" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td align="left" class="muted">
                                                                    Mes:
                                                                </td>
                                                                <td align="left">
                                                                    <asp:DropDownList runat="server" ID="ddlMes" CssClass="tdCampoValorInput" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td align="center">
                                                                    <asp:Button runat="server" ID="btnAceptar" Text="Aceptar" OnClick="btnAceptar_Click" CssClass="btn" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <asp:GridView runat="server" ID="gvPorcentajeAccWS" AutoGenerateColumns="false">
                                                            <Columns>
                                                                <asp:BoundField HeaderText="Web Service" DataField="Texto" />
                                                                <asp:BoundField HeaderText="Porcentaje" DataField="Texto2" />
                                                            </Columns>
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center">
                                                        <br />
                                                        <asp:Chart ID="Grafico1" runat="server" Width="600px" Height="300px">
                                                            <BorderSkin SkinStyle="FrameThin5" />
                                                            <Titles>
                                                                <asp:Title Name="Titulo1" Text="Cantidad de accesos por servicios web" Font="Arial, 12.00pt, style=Bold">
                                                                </asp:Title>
                                                            </Titles>
                                                            <ChartAreas>
                                                                <asp:ChartArea Name="ChartArea1">
                                                                </asp:ChartArea>
                                                            </ChartAreas>
                                                            <Legends>
                                                                <asp:Legend Name="Mileyenda" LegendStyle="Table" Docking="Right">
                                                                </asp:Legend>
                                                            </Legends>
                                                        </asp:Chart>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td width="100%" align="center">
                                                        <br />
                                                        <asp:Chart ID="Grafico2" runat="server" Width="650px" Height="400px">
                                                            <BorderSkin SkinStyle="FrameThin5" />
                                                            <Titles>
                                                                <asp:Title Name="Titulo1" Text="Cantidad de accesos por día" Font="Trebuchet MS, 14pt, style=Bold">
                                                                </asp:Title>
                                                            </Titles>
                                                            <ChartAreas>
                                                                <asp:ChartArea Name="ChartArea1">
                                                                </asp:ChartArea>
                                                            </ChartAreas>
                                                            <Legends>
                                                                <asp:Legend Name="Mileyenda" LegendStyle="Table" Docking="Bottom">
                                                                </asp:Legend>
                                                            </Legends>
                                                        </asp:Chart>
                                                    </td>
                                                </tr>
                                            </table>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
